package cn.hiapi.shop.query;

import cn.hiapi.basic.jpa.pageable.QueryWrapper;
import cn.hiapi.basic.jpa.query.BasicQuery;
import lombok.Getter;
import lombok.Setter;

/**
 * @author AdinZ
 * @date 2023/2/4 16:31
 */
@Setter
@Getter
public class ActivityLotteryAdQuery extends BasicQuery {
    private long shopId;
    private Integer status;

    @Override
    public QueryWrapper getQueryWrapper() {
        QueryWrapper wrapper = super.getBasicQueryWrapper();
        wrapper.eq("shopId", this.shopId);
        wrapper.eq("status", this.status);
        wrapper.eq("payStatus", 1);
        return wrapper;
    }
}
